Version

RectanglesCollide(Single,RectangleF[]) Method

Returns whether or not any Rectangle in the array would collide with another rectangle if they were all rotated at the given angle, using their centers as the axis of rotation.
Syntax
'Declaration
 
Public Overloads Shared Function RectanglesCollide( _
   ByVal rotationAngle As Single, _
   ByVal rects() As RectangleF _
) As Boolean
public static bool RectanglesCollide( 
   float rotationAngle,
   RectangleF[] rects
)

Parameters

rotationAngle
The angle of rotation in degrees.
rects
The array of rectangles to test for collisions.

Return Value

True if any two rectangles would collide, otherwise False.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also